package com.kun.gulimall.ware.controller;

import com.kun.gulimall.ware.service.WareInfoService;
import lombok.RequiredArgsConstructor;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RequestMapping("/ware/info")
@RestController
@RequiredArgsConstructor
public class WareInfoController {

    private final WareInfoService wareInfoService;

    @GetMapping("/list")
    public ResponseEntity<Object> list(Map<String, Object> params) {
        return ResponseEntity.ok(wareInfoService.queryPage(params));
    }

}
